// 兼容 IE
// https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md#babelpolyfill
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 设置 js中可以访问 $cdn
import { $cdn } from '@/config'
Vue.prototype.$cdn = $cdn

// 全局引入按需引入UI库
import '@/plugins/index'
// 引入全局样式
import '@/assets/css/index.scss'
// 移动端适配
// import 'lib-flexible/flexible.js'

// filters
import './filters'
Vue.config.productionTip = false

import comUntils from './utils/commonTools/index' //引入公共工具类
Vue.use(comUntils)

import waterfall from 'vue-waterfall2'
Vue.use(waterfall)

//引入二维码生成工具
import QRCode from 'qrcodejs2'
Vue.prototype.QRCode = QRCode

import VueCoreVideoPlayer from 'vue-core-video-player'
Vue.use(VueCoreVideoPlayer)

import global_ from './Base.vue'
Vue.prototype.$GLOBAL = global_

import { ElementTiptapPlugin } from 'element-tiptap'
// import ElementUI's styles
import 'element-ui/lib/theme-chalk/index.css'
// import this package's styles
import 'element-tiptap/lib/index.css'
Vue.use(ElementTiptapPlugin, {
  lang: 'zh'
})

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
